function [set] = get_rating(A)
    r_mins = min(A, [], 2);
    A = A - diag(r_mins) * ones(size(A));
    c_mins = min(A);
    A0 =  A - ones(size(A)) * diag(c_mins);
    set.ways = A0;
    set.rating = sum(r_mins) + sum(c_mins);
end

